// 行业管理 -- 接口
import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

// 行业分类-------------------
// 新增
const informationPage = (params) => getAction('/industry/information/tree', params)

// 新增
const informationAdd = (params) => postAction('/industry/information/add', params)

// 编辑
const informationEdit = (params) => postAction('/industry/information/edit', params)

// 删除
const informationDelete = (params) => deleteAction('/industry/information/delete', params)

// 检查内容
const examineAdd = (params) => postAction('/industry/examine/add', params)

const examineEdit = (params) => postAction('/industry/examine/edit', params)

const examineDelete = (params) => deleteAction('/industry/examine/delete', params)

const examineUpdate = (params) => postAction('/industry/examine/update_status', params)

// 检查内容 检查类别
const examineCategoryAdd = (params) => postAction('/industry/examine_category/add', params)

const examineCategoryEdit = (params) => postAction('/industry/examine_category/edit', params)

const examineCategoryDelete = (params) => deleteAction('/industry/examine_category/delete', params)

// 检查内容 检查项
const examineDetailCategoryAdd = (params) => postAction('/industry/examine_detail/add', params)

const examineDetailCategoryEdit = (params) => postAction('/industry/examine_detail/edit', params)

const examineDetailCategoryDelete = (params) => deleteAction('/industry/examine_detail/delete', params)

// 特色功能
const industryFeaturesAdd = (params) => postAction('/industry/industry_features/add', params)

const industryFeaturesEdit = (params) => postAction('/industry/industry_features/edit', params)

const industryFeaturesDelete = (params) => deleteAction('/industry/industry_features/delete', params)

// 旅馆也设备信息
const hotelDeviceConfigAdd = (params) => postAction('/hotel/device_config/add', params)

const hotelDeviceConfigEdit = (params) => postAction('/hotel/device_config/edit', params)

const hoteleviceConfigDelete = (params) => deleteAction('/hotel/device_config/delete', params)
export {
  informationPage,
  informationAdd,
  informationEdit,
  informationDelete,
  examineAdd,
  examineEdit,
  examineDelete,
  examineUpdate,
  examineCategoryAdd,
  examineCategoryEdit,
  examineCategoryDelete,
  examineDetailCategoryAdd,
  examineDetailCategoryEdit,
  examineDetailCategoryDelete,
  industryFeaturesAdd,
  industryFeaturesEdit,
  industryFeaturesDelete,
  hotelDeviceConfigAdd,
  hotelDeviceConfigEdit,
  hoteleviceConfigDelete,
}
